#ifndef BLEEDTHROUGHTOADDEVAL_HPP
#define BLEEDTHROUGHTOADDEVAL_HPP

#include "GlobalMesureTemplateMethod.hpp"
#include "GlobalThresholdBinarisation.hpp"
#include "ThresholderOtsuBleedThroughAware.hpp"


#include "EvalBleedThroughParameters.hpp"
#include "EvalBleedThrough.hpp"

/*!
  *
  * This Mesure tries to evaluate the quantity of caracters that will be added to the recto.
  *
  */
class EvalBleedThroughAdd: public EvalBleedThrough
{
public:
    EvalBleedThroughAdd();
    EvalBleedThroughAdd(const girl::tools::Image &verso);
    ~EvalBleedThroughAdd();

    virtual float evaluate(const girl::tools::Image &image);

    virtual void init();

    virtual std::string getName()
    {return "mA";}



protected :
    GlobalThresholdBinarisation *_versoBinarisation;
    girl::regionDeque * _versoRegions;
    girl::toger * _versoToger;
    int _seuil;
    ThresholderOtsuBleedThroughAware _thresholder;


};

#endif // BLEEDTHROUGHTOADDEVAL_HPP
